<?php
	class lienketbs
	{
		public $MaLienKet = 0;
		public $TenLienKet = "";
		public $DiaChiLienKet = "";
		
		public function Add()
		{
			$db = new lienketdb();
			return $db->Add($this->TenLienKet, $this->DiaChiLienKet);
		}
		
		public function Delete()
		{
			$db = new lienketdb();
			return $db->Delete($this->MaLienKet);
		}
		
		public function Update()
		{
			$db = new lienketdb();
			return $db->Update($this->MaLienKet, $this->TenLienKet, $this->DiaChiLienKet);
		}
		
		public function GetList()
		{
			$db = new lienketdb();
			return $db->GetList();
		}
		
		public function GetListByID()
		{
			$db = new lienketdb();
			return $db->GetList($this->MaLienKet);
		}
	}
?>